/*
 * @(#)WordTextExtractor.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms.extractor;

import java.io.InputStream;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.textmining.text.extraction.WordExtractor;

/**
  WordTextExtractor.java

  This class is the text extractor for Word files.

    @author          Rollo Chan
    @company         DCIVision Limited
    @creation date   26/08/2003
    @version         $Revision: 1.10.32.1 $
*/

public class WordTextExtractor extends AbstractTextExtractor {

  public static final String REVISION = "$Revision: 1.10.32.1 $";

  private static final Log log = LogFactory.getLog(WordTextExtractor.class);
  
  public WordTextExtractor(InputStream fis, String encoding) {
    super(fis, encoding);
    if (fis==null) {
      return;
    }
    try {
      WordExtractor extractor = new WordExtractor();
      text = extractor.extractText(fis);
    } catch (Exception e) {
      log.error(e, e);
    }
  }

}